<!DOCTYPE html>
<html lang="en-gb" dir="ltr">

    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>Width - UIkit tests</title>
        <script src="js/test.js"></script>
        <style type="text/css">

            .uk-panel {
                padding: 10px;
                text-align: center;
            }

            :nth-child(10n-9) > .uk-panel { background: rgba(0,0,0,0.1); }
            :nth-child(10n-8) > .uk-panel { background: rgba(0,0,0,0.15); }
            :nth-child(10n-7) > .uk-panel { background: rgba(0,0,0,0.2); }
            :nth-child(10n-6) > .uk-panel { background: rgba(0,0,0,0.25); }
            :nth-child(10n-5) > .uk-panel { background: rgba(0,0,0,0.3); }
            :nth-child(10n-4) > .uk-panel { background: rgba(0,0,0,0.35); }
            :nth-child(10n-3) > .uk-panel { background: rgba(0,0,0,0.40); }
            :nth-child(10n-2) > .uk-panel { background: rgba(0,0,0,0.45); }
            :nth-child(10n-1) > .uk-panel { background: rgba(0,0,0,0.50); }
            :nth-child(10n) > .uk-panel { background: rgba(0,0,0,0.55); }

        </style>
    </head>

    <body>

        <div class="uk-container">

            <h1>Width</h1>

            <h2>Child Widths</h2>

            <div class="uk-grid-match uk-child-width-1-2 uk-child-width-1-3@s uk-child-width-1-4@m uk-child-width-1-5@l uk-child-width-1-6@xl" uk-grid>
                <div><div class="uk-panel">1-2<br>1-3-S<br>1-4-M<br>1-5-L<br>1-6-XL</div></div>
                <div><div class="uk-panel">1-2<br>1-3-S<br>1-4-M<br>1-5-L<br>1-6-XL</div></div>
                <div><div class="uk-panel">1-2<br>1-3-S<br>1-4-M<br>1-5-L<br>1-6-XL</div></div>
                <div><div class="uk-panel">1-2<br>1-3-S<br>1-4-M<br>1-5-L<br>1-6-XL</div></div>
                <div><div class="uk-panel">1-2<br>1-3-S<br>1-4-M<br>1-5-L<br>1-6-XL</div></div>
                <div><div class="uk-panel">1-2<br>1-3-S<br>1-4-M<br>1-5-L<br>1-6-XL</div></div>
            </div>

            <h2>Single Widths</h2>

            <div class="uk-grid-match" uk-grid>
                <div class="uk-width-1-2 uk-width-1-3@s uk-width-1-4@m uk-width-1-5@l uk-width-1-6@xl"><div class="uk-panel">1-2<br>1-3-S<br>1-4-M<br>1-5-L<br>1-6-XL</div></div>
                <div class="uk-width-1-2 uk-width-1-3@s uk-width-1-4@m uk-width-1-5@l uk-width-1-6@xl"><div class="uk-panel">1-2<br>1-3-S<br>1-4-M<br>1-5-L<br>1-6-XL</div></div>
                <div class="uk-width-1-2 uk-width-1-3@s uk-width-1-4@m uk-width-1-5@l uk-width-1-6@xl"><div class="uk-panel">1-2<br>1-3-S<br>1-4-M<br>1-5-L<br>1-6-XL</div></div>
                <div class="uk-width-1-2 uk-width-1-3@s uk-width-1-4@m uk-width-1-5@l uk-width-1-6@xl"><div class="uk-panel">1-2<br>1-3-S<br>1-4-M<br>1-5-L<br>1-6-XL</div></div>
                <div class="uk-width-1-2 uk-width-1-3@s uk-width-1-4@m uk-width-1-5@l uk-width-1-6@xl"><div class="uk-panel">1-2<br>1-3-S<br>1-4-M<br>1-5-L<br>1-6-XL</div></div>
                <div class="uk-width-1-2 uk-width-1-3@s uk-width-1-4@m uk-width-1-5@l uk-width-1-6@xl"><div class="uk-panel">1-2<br>1-3-S<br>1-4-M<br>1-5-L<br>1-6-XL</div></div>
            </div>

            <h2>Mixed</h2>

            <div class="uk-grid-match uk-child-width-1-2 uk-child-width-1-3@s uk-child-width-1-4@m uk-child-width-1-5@l uk-child-width-1-6@xl" uk-grid>
                <div class="uk-width-expand"><div class="uk-panel">Expand</div></div>
                <div class="uk-width-1-4@m"><div class="uk-panel">1-4-M</div></div>
                <div><div class="uk-panel">1-2<br>1-3-S<br>1-4-M<br>1-5-L<br>1-6-XL</div></div>
                <div><div class="uk-panel">1-2<br>1-3-S<br>1-4-M<br>1-5-L<br>1-6-XL</div></div>
                <div><div class="uk-panel">1-2<br>1-3-S<br>1-4-M<br>1-5-L<br>1-6-XL</div></div>
            </div>

            <h2>Expand</h2>

            <div class="uk-grid-match uk-child-width-expand" uk-grid>
                <div><div class="uk-panel">Expand with some more text</div></div>
                <div><div class="uk-panel uk-width-large">Panel Width Large</div></div>
                <div><div class="uk-panel">Expand</div></div>
                <div><div class="uk-panel">Expand</div></div>
                <div><div class="uk-panel">Expandwithnonebreakingspace</div></div>
                <div><div class="uk-panel"><img src="images/photo.jpg" alt=""></div></div>
            </div>

            <div class="uk-grid-collapse uk-grid-match uk-child-width-expand uk-margin" uk-grid>
                <div class="uk-width-1-1"><div class="uk-panel">1-1</div></div>
                <div><div class="uk-panel">Expand</div></div>
            </div>

            <h2>Auto</h2>

            <div class="uk-grid-match uk-child-width-auto" uk-grid>
                <div><div class="uk-panel">Auto with some more text</div></div>
                <div><div class="uk-panel">Auto</div></div>
                <div><div class="uk-panel">Auto</div></div>
                <div><div class="uk-panel">Auto</div></div>
                <div><div class="uk-panel">Auto</div></div>
                <div><div class="uk-panel">Auto</div></div>
            </div>

            <div class="uk-grid-match uk-child-width-auto uk-flex-between" uk-grid>
                <div><div class="uk-panel">Auto with some more text and space between the two items</div></div>
                <div><div class="uk-panel">Auto with some more text</div></div>
            </div>

            <h2>Pixel</h2>

            <ul class="uk-grid-small uk-grid-match uk-child-width-expand" uk-grid>
                <li class="uk-width-small"><div class="uk-panel">Small</div></li>
                <li><div class="uk-panel">Expand with some more text</div></li>
            </ul>

            <ul class="uk-grid-small uk-grid-match uk-child-width-expand" uk-grid>
                <li class="uk-width-medium@s"><div class="uk-panel">Medium</div></li>
                <li><div class="uk-panel">Expand with some more text</div></li>
            </ul>

            <ul class="uk-grid-small uk-grid-match uk-child-width-expand" uk-grid>
                <li class="uk-width-large@s"><div class="uk-panel">Large</div></li>
                <li><div class="uk-panel">Expand with some more text</div></li>
            </ul>

            <ul class="uk-grid-small uk-grid-match uk-child-width-expand" uk-grid>
                <li class="uk-width-xlarge@m"><div class="uk-panel">X-Large</div></li>
                <li><div class="uk-panel">Expand with some more text</div></li>
            </ul>

            <ul class="uk-grid-small uk-grid-match uk-child-width-expand" uk-grid>
                <li class="uk-width-2xlarge@l"><div class="uk-panel">2X-Large</div></li>
                <li><div class="uk-panel">Expand with some more text</div></li>
            </ul>

        </div>

    </body>
</html>
